package com.lookoutthebush.companyindex.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//@Configuration
//public class MyMvcConfig implements WebMvcConfigurer {
//    @Bean
//    public WebMvcConfigurer webMvcConfigurer() {
//        return new WebMvcConfigurer() {
//            @Override
//            public void addInterceptors(InterceptorRegistry registry) {
//                //静态资源不能拦截
//                //springboot已经做好了静态资源映射
//                registry.addInterceptor(new LoginHandlerInterceptor()).addPathPatterns("/rideInfo/**", "/city/**",
//                        "/userCenter/**", "/order/**", "/apply/**", "/audit/**","/new/addNewType", "/new/addNew")
//                        .excludePathPatterns("/user/**", "/city/**", "/rideInfo/index", "/rideInfo/showRideInfo", "/rideInfo/getRideInfoByPage");
//            }
//        };
//    }
//}
